<!doctype html>
<html>
{include file="head.html"}

<body>
<div class="fullscreen" >
        <div class="scroll_content">
            <div class="topfixed">
                <div class="t_left"><a href="index.php"><i class="back"></i></a></div>
                <div class="t_main">今日特价</div>

            </div>
            <div class="paddingheight"></div>
            <div class="global_tabs_wrap">
                <ul class="global_tabs clearfix">
                    <li  class="first {if get('t') eq 0 or get('t') eq 1}cur{/if}"><a href="/index.php?m=tejia&t=1">正在进行</a></li>
                    <li class="  {if get('t') eq 2}cur{/if}"><a href="/index.php?m=tejia&t=2">即将开始</a></li>
                    <li class="last {if get('t') eq 3}cur{/if}"><a href="/index.php?m=tejia&t=3">往期活动</a></li>
                </ul>
            </div>
            <div class="product_list" style="position:relative;">
                <ul class="list clearfix">
                	{foreach item=c from=$data}
                    <li>
                        <p><a href="/index.php?m=tejia&a=show&id={$c.id}"><img src="{$c.imgurl|images_site}.middle.jpg" class="img" onerror="err_imgurl(this,2)"></a></p>

                        <p class="tit">{$c.title}</p>

                        <div class="num"><span class="fl"><del>￥{$c.market_price}</del></span><span class="fr">限量{$c.total_num}份</span></div>
                        <div class="qiangbox clearfix">
                            <p class="f_left">
                                ￥{$c.price}

                            </p>

                            <p class="f_right">
                                <a href="/index.php?m=tejia_order&a=buy&id={$c.id}"><span class="arr"></span><span class="txt">{if $c.endtime lt time()}已结束{elseif $c.starttime>time()}即将开始{else}马上抢{/if}</span></a>
                            </p>
                        </div>
                    </li>
					{/foreach}
                     
                </ul>
            </div>
        </div>
    </div>
{include file="footer.html"}
 <script src="{$skins}js/jquery.blocksit.min.js"></script>
     <script>
	
	$(function () {
		
      //瀑布流
	  $('.product_list ul').BlocksIt({ numOfCol: 2, offsetX: 2, offsetY: 2, blockElement: "li" });
	  setTimeout(function(){
		  $('.product_list ul').BlocksIt({ numOfCol: 2, offsetX: 2, offsetY: 2, blockElement: "li" });
	  },1000);
	  
	});
	</script>     
</body>
</html>
